#!/bin/bash

cd $(dirname "$0")

# change sources.list
sudo cp /etc/apt/sources.list /etc/apt/sources_backup.list
sudo cp -f ./sources.list /etc/apt/sources.list

# close animation
gsettings set org.gnome.desktop.interface enable-animations false

# uninstall useless software 
sudo apt remove -y libreoffice*
sudo apt remove -y thunderbird aisleriot gnome-mines gnome-sudoku rhythmbox gnome-mahjongg 
sudo apt update
sudo apt upgrade -y
sudo apt autoremove -y

sudo apt install vim curl git openssh-server net-tools build-essential

# Create ssh key
ssh-keygen -t rsa

# git settings
git config --global user.name “Hao”
git config --global user.email “zhao5638@gmail.com”
git config --global --list
ssh-keygen -t rsa -C "zhao5638@gmail.com"

# setting zsh(wasted)
# git clone --depth=1 https://gitee.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes/powerlevel10k
# cat ./.zshrc >> ~/.zshrc
# source ~/.zshrc